﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DelegateTest1
{
    public class ExpressionClass
    {
        //static int Add(int a, int b)
        //{
        //    return a + b;
        //}

        //static int subtract(int a, int b)
        //{
        //    return a - b;
        //}

        public static void Calculate<T, Y, U>(Func<T, Y, U> ex, T a, Y b)
        {
            Console.WriteLine(ex(a, b).ToString() + @"\r\n");
        }
    }
}
